package com.cyrus.vueboot.controller.redirect;

import com.cyrus.vueboot.service.AdminService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: Cyrus
 * @CreateDate: 2020/11/13
 */
@Slf4j
@Controller
public class WebController {
    @Autowired
    private AdminService adminService;

    @RequestMapping("/welcome")
    public String welcome(){
        return "welcome";
    }


    @RequestMapping({"/index","/"})
    public String index() {
        return "index";
    }

    @RequestMapping("/page/Admin")
    public String Admin() {
        return "Admin";
    }

    @RequestMapping("/page/Authority")
    public String User() {
        return "Authority";
    }

    @RequestMapping("/toLogin")
    public String toLogin() {
        return "login";
    }

    @RequestMapping("/page/LoginLog")
    public String LoginLog() {
        return "LoginLog";
    }

    @RequestMapping("/page/OpsLog")
    public String OpsLog() {
        return "OpsLog";
    }

    @RequestMapping("/page/department")
    public String department() {
        return "department";
    }

    @RequestMapping("/page/departmentUser")
    public String departmentUser() {
        return "departmentUser";
    }


}
